<h3><?= Yii::t('module_user','Login'); ?></h3>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'enableAjaxValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class' => 'form-horizontal',
	)
)); ?>

	<div class="control-group">
		<?= $form->labelEx($model,'username', array("class"=>"control-label")); ?>
		<div class="controls"><?= $form->textField($model,'username', array("class"=>"input-xlarge")); ?></div>
		<?= $form->error($model,'username'); ?>
	</div>

	<div class="control-group">
		<?= $form->labelEx($model,'password', array("class"=>"control-label")); ?>
		<div class="controls"><?= $form->passwordField($model,'password', array("class"=>"input-xlarge")); ?></div>
		<?= $form->error($model,'password'); ?>
	</div>

	<div class="control-group rememberMe">
		<div class="controls">
			<label class="checkbox" for="<?= CHtml::activeId($model, 'rememberMe'); ?>">
				<?= $form->checkBox($model,'rememberMe'); ?><?= $model->getAttributeLabel('rememberMe'); ?>
			</label>
		</div>
		<?= $form->error($model,'rememberMe'); ?>
	</div>

	<div class="form-actions">
		<?= CHtml::submitButton(Yii::t('module_user', 'Login'), array("class"=>"btn btn-primary")); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
